<template>
  <tab-bar>
    <tab-bar-item path="/home" activeColor="#333333">
    <!-- 当webpack.base.conf.js中resolve节点设置了路径的别名Alias，在html标签中需要使用下面波浪线这种写法 -->
      <img slot="item-icon" src="~assets/img/tabbar/shouye.svg" alt="" /> 
      <img
        slot="item-icon-active"
        src="~assets/img/tabbar/shouye-xuanzhong.svg"
        alt=""
      />
      <div slot="item-text">首页</div>
    </tab-bar-item>
    <tab-bar-item path="/category" activeColor="#333333">
      <img slot="item-icon" src="~assets/img/tabbar/fenlei.svg" alt="" />
      <img
        slot="item-icon-active"
        src="~assets/img/tabbar/fenlei-xuanzhong.svg"
        alt=""
      />
      <div slot="item-text">分类</div>
    </tab-bar-item>
    <tab-bar-item path="/profile" activeColor="#333333">
      <img slot="item-icon" src="~assets/img/tabbar/wode.svg" alt="" />
      <img
        slot="item-icon-active"
        src="~assets/img/tabbar/wode-xuanzhong.svg"
        alt=""
      />
      <div slot="item-text">我的</div>
    </tab-bar-item>
    <tab-bar-item path="/cart" activeColor="#333333">
      <img slot="item-icon" src="~assets/img/tabbar/gouwuche.svg" alt="" />
      <img
        slot="item-icon-active"
        src="~assets/img/tabbar/gouwuche-xuanzhong.svg"
        alt=""
      />
      <div slot="item-text">购物车</div>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
// 当webpack.base.conf.js中resolve节点设置了路径的别名Alias，在js代码中import时无需使用波浪线，直接使用别名即可
import TabBar from "components/tabbar/TabBar";
import TabBarItem from "components/tabbar/TabBarItem";

export default {
  name: "MainTabBar",
  components: { TabBar, TabBarItem },
};
</script>

<style>
</style>